
env=3

portList=(
    443
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start htts_server/Https_Server.js --name Https_Server-$port   --output="./logs/Https_Server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS"   -- $port $env
done;



# 使用端口

portList=(
    5555
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start gm_server/gm_server.js --name gm_server-$port   --output="./logs/gm_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS"   -- $port $env
done;


portList=(
    9000
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start pay_server/pay_server.js --name pay_server-$port   --output="./logs/pay_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS"   -- $port $env
done;

portList=(
    9600
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start web_server/WebServer.js --name WebServer-$port   --output="./logs/WebServer"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS"   -- $port $env
done;

portList=(
    9300
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start account_server/account_server.js --name account_server-$port   --output="./logs/account_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS" -- $port $env
done;

portList=(
    9200
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start hall_server/hall_server.js --name hall_server-$port   --output="./logs/hall_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS" -- $port $env
done;

portList=(
    9400
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start log_server/log_server.js --name log_server-$port   --output="./logs/log_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS" -- $port $env
done;

portList=(
    9500
    9502
    9504
    9506
    9508
    9512
    9514
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start huanghua_mj_server/huanghua_mj_server.js --name huanghua_mj_server-$port   --output="./logs/huanghua_mj_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS" -- $port $env
done;

# portList=(
#     9700
#     9702
#     9704
# )
# for(( i=0;i<${#portList[@]};i++)) do
#     port=${portList[i]}
# echo "port="$port
# pm2 start ddz_server/ddz_server.js --name ddz_server-$port   --output="./logs/ddz_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS" -- $port $env
# done;

# portList=(
#     9800
#     9802
#     9804
# )
# for(( i=0;i<${#portList[@]};i++)) do
#     port=${portList[i]}
# echo "port="$port
# pm2 start jianziding_server/jianziding_server.js --name jianziding_server-$port   --output="./logs/jianziding_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS" -- $port $env
# done;

# portList=(
#     9900
#     9902
#     9904
# )
# for(( i=0;i<${#portList[@]};i++)) do
#     port=${portList[i]}
# echo "port="$port
# pm2 start cangxian_mj_server/cangxian_mj_server.js --name cangxian_mj_server-$port   --output="./logs/cangxian_mj_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS" -- $port $env
# done;

# portList=(
#     10010
#     10012
#     10014
# )
# for(( i=0;i<${#portList[@]};i++)) do
#     port=${portList[i]}
# echo "port="$port
# pm2 start paodekuai_server/paodekuai_server.js --name paodekuai_server-$port   --output="./logs/paodekuai_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS" -- $port $env
# done;


# portList=(
#     10020
#     10022
#     10024
# )
# for(( i=0;i<${#portList[@]};i++)) do
#     port=${portList[i]}
# echo "port="$port
# pm2 start dazhonger_mj_server/dazhonger_mj_server.js --name dazhonger_mj_server-$port   --output="./logs/dazhonger_mj_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS" -- $port $env
# done;

portList=(
    9527
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start center_server/center_server.js --name center_server-$port   --output="./logs/center_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS" -- $port $env
done;

portList=(
    13200
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start upload_server/upload_server.js --name upload_server-$port   --output="./logs/upload_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS"   -- $port $env
done;

